package xyz.xtgl.merchant.feign;

import common.core.constant.Constant;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import plus.logic.LogicBaseFeign;
import xyz.xtgl.merchant.entity.BMerchantUser;
import xyz.xtgl.merchant.feign.fallback.BMerchantUserFeignFallback;

@FeignClient(value = Constant.SERVICE_NAME_XTGL_MERCHANT, fallback = BMerchantUserFeignFallback.class ,path="/merchant/b_merchant_user")
public interface BMerchantUserFeign extends LogicBaseFeign<BMerchantUser>{

    @GetMapping("/loginByPhone")
    BMerchantUser loginByPhone(@RequestParam("phone") String phone);

}


